<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-type" data-rule="required" class="form-control" name="row[type]" type="number" value="{$row.type}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Username1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-username1" class="form-control" name="row[username1]" type="text" value="{$row.username1}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile1" class="form-control" name="row[mobile1]" type="text" value="{$row.mobile1}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Username2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-username2" class="form-control" name="row[username2]" type="text" value="{$row.username2}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile2" data-rule="required" class="form-control" name="row[mobile2]" type="text" value="{$row.mobile2}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Signtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-signtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[signtime]" type="text" value="{:$row.signtime?datetime($row.signtime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user.user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User1_sign_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="user1SignStatusList" item="vo"}
            <label for="row[user1_sign_status]-{$key}"><input id="row[user1_sign_status]-{$key}" name="row[user1_sign_status]" type="radio" value="{$key}" {in name="key" value="$row.user1_sign_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User1_sign_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user1_sign_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[user1_sign_time]" type="text" value="{:$row.user1_sign_time?datetime($row.user1_sign_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User2_sign_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="user2SignStatusList" item="vo"}
            <label for="row[user2_sign_status]-{$key}"><input id="row[user2_sign_status]-{$key}" name="row[user2_sign_status]" type="radio" value="{$key}" {in name="key" value="$row.user2_sign_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User2_sign_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user2_sign_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[user2_sign_time]" type="text" value="{:$row.user2_sign_time?datetime($row.user2_sign_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Esign_fileid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-esign_fileid" class="form-control" name="row[esign_fileid]" type="text" value="{$row.esign_fileid}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Template_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-template_id" data-rule="required" data-source="template/index" class="form-control selectpage" name="row[template_id]" type="text" value="{$row.template_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Edit_url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-edit_url" class="form-control" name="row[edit_url]" type="text" value="{$row.edit_url}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sign_url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sign_url" class="form-control" name="row[sign_url]" type="text" value="{$row.sign_url}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Flowid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-flowId" class="form-control" name="row[flowId]" type="text" value="{$row.flowId}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_success')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_success" class="form-control selectpicker" name="row[is_success]">
                {foreach name="isSuccessList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.is_success"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content_url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-content_url" class="form-control" name="row[content_url]" type="text" value="{$row.content_url}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Record_sn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-record_sn" class="form-control" name="row[record_sn]" type="text" value="{$row.record_sn}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Json')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <dl class="fieldlist" data-name="row[json]">
                <dd>
                    <ins>{:__('Key')}</ins>
                    <ins>{:__('Value')}</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[json]" class="form-control hide" cols="30" rows="5">{$row.json}</textarea>
            </dl>


        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Anttransactionid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-antTransactionId" class="form-control" name="row[antTransactionId]" type="text" value="{$row.antTransactionId}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Anttxhash')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-antTxHash" class="form-control" name="row[antTxHash]" type="text" value="{$row.antTxHash}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Filehash')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fileHash" class="form-control" name="row[fileHash]" type="text" value="{$row.fileHash}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pdf_path')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pdf_path" class="form-control" name="row[pdf_path]" type="text" value="{$row.pdf_path}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image_path')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-image_path" class="form-control" name="row[image_path]" type="text" value="{$row.image_path}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
